package com.hk.web.domain.entity;

import com.hk.commons.domain.entity.IdEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;

/**
 * 移动APP手势密码
 * @author 会飞的狼 on 2018/1/5.
 */
@Entity
@DynamicInsert
@DynamicUpdate
@EntityListeners(AuditingEntityListener.class)
public class AppGestureCipher extends IdEntity {

    @Column(columnDefinition = "varchar(15) comment '用户名(登录账号)'")
    private String loginName;

    @Column(columnDefinition = "int(10) comment '登录手势提醒 提示：1, 不提示:0, 默认要提示1'")
    private Integer loginPushMessage=1;

    @Column(columnDefinition = "varchar(100) comment '手势密码'")
    private String gestureCipher;

    @Column(columnDefinition = "int(10) comment 'app应用类型 1:华财通, 2:理财师'")
    private Integer appType;

    @Column(columnDefinition = "int(5) comment '手势密码状态 true:开启状态 false:关闭状态 默认为关闭false'")
    private Boolean gestureCipherState = false;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public Integer getLoginPushMessage() {
        return loginPushMessage;
    }

    public void setLoginPushMessage(Integer loginPushMessage) {
        this.loginPushMessage = loginPushMessage;
    }

    public String getGestureCipher() {
        return gestureCipher;
    }

    public void setGestureCipher(String gestureCipher) {
        this.gestureCipher = gestureCipher;
    }

    public Integer getAppType() {
        return appType;
    }

    public void setAppType(Integer appType) {
        this.appType = appType;
    }

    public Boolean getGestureCipherState() {
        return gestureCipherState;
    }

    public void setGestureCipherState(Boolean gestureCipherState) {
        this.gestureCipherState = gestureCipherState;
    }
}
